package com.jt.controller;


import com.jt.pojo.Rights;
import com.jt.service.RightsService;
import com.jt.vo.SysResult;
import com.sun.org.apache.regexp.internal.RE;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import javax.servlet.ServletContext;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Enumeration;
import java.util.List;

@RestController
@RequestMapping("/rights")
@CrossOrigin
public class RightsController {

       @Autowired
       private  RightsService  rightsService;

       @GetMapping("/getRightsList")
       public  SysResult  getRightsList(){

           //角色id
           

           List<Rights> rightsList = rightsService.findRightsList();
           return  SysResult.success(rightsList);
       }
}
